package at.fhooe.mcm.logic.sensors.events;

import at.fhooe.mcm.logic.event.Event;
import at.fhooe.mcm.logic.event.EventType;

public class SensorResponseEvent extends Event
{
	private static final long		serialVersionUID	= -4112453342538207129L;
	public static final EventType	TYPE				= new EventType("ResponseSensor");

	private String					m_id;
	private String					m_name;
	private String					m_type;
	private boolean					m_isPublic;
	private boolean					m_isPull;
	private int						m_pushPeriod;

	@Override
	public EventType getType()
	{
		return TYPE;
	}

	public SensorResponseEvent(String _id, String _type, String _name, boolean _isPublic, boolean _isPull, int _pushPeriod)
	{
		m_id = _id;
		m_type = _type;
		m_name = _name;
		m_isPublic = _isPublic;
		m_isPull = _isPull;
		m_pushPeriod = _pushPeriod;
	}

	public String getSensorID()
	{
		return m_id;
	}

	public String getSensorType()
	{
		return m_type;
	}

	public String getSensorName()
	{
		return m_name;
	}

	public boolean isPublic()
	{
		return m_isPublic;
	}

	public boolean isPull()
	{
		return m_isPull;
	}
	
	public int getPushPeriod()
	{
		return m_pushPeriod;
	}
}